package com.guimin.order.dto;

import lombok.Data;

import javax.validation.constraints.*;
import java.math.BigDecimal;

/**
 * 添加废旧回收订单
 */
@Data
public class AddRecycleDto {
    /**订单类型*/
    @NotBlank(message = "订单类型不能为空")
    @Size(max = 20)
    private String type;
    /**交易的爱心能量(单位：个)*/
    @NotNull(message = "爱心能量不能为空")
    private Integer loveEnergy;
    /**备注*/
    @Size(max = 100)
    private String memo;
    /**站点id*/
    private Long stationId;
    /**交易金额(人民币/元)*/
    @NotNull(message = "金额不能为空")
    @Digits(integer = 9,fraction = 2,message = "金额格式错误")
    @DecimalMin(value = "0.00")
    private BigDecimal amount;
    /**付款人id*/
    private Long payerId;
    /**付款人账户*/
    private String payerAccount;
    /**收款人id*/
    @NotNull(message = "收款人id不能为空")
    private Long payeeId;
    /**收款人账户*/
    @NotBlank(message = "收款人账户不能为空")
    @Size(max = 50)
    private String payeeAccount;
}
